const express = require('express')
const Router = express.Router()
const server = require('./server.js')
Router.get('/books', server.getAllBook)
Router.post('/books', server.addBook)
Router.get('/books/book:name',server.checkName)
Router.put('/books/edit:id',server.editBook)
Router.delete('/books/delete:id', server.deleteBook)
module.exports = Router 